<?php
function CreateQuizdb($data){
	$table_name = $wpdb->prefix . "quizAnimation";		

	$wpdb->insert( 
		$table_name, 
		array( 
			'text' => $data 
		) 
	);
}
CreateQuizdb($_POST['action']);
?>